<div class="layuimini-main" xmlns:th="http://www.w3.org/1999/xhtml">
<style>
    .layuimini-form .layui-form-item label{ line-height: 40px; text-align: right; padding-right: 10px;}
    #index_image{ max-height: 350px; max-width: 400px;}
</style>
    <div class="layui-form layuimini-form">
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="layui-form-item layui-row">
            <label class="layui-col-sm2 required">照片</label>
            <div class="layui-upload layui-col-sm10">
                <button type="button" class="layui-btn" id="imgBtn">上传照片</button>
                <div class="layui-upload-list update_list">
                    <img class="layui-upload-img" id="index_image">
                    <p id="index_image_text"></p>
                    <input type="hidden" id="indexImagePath" name="url">
                    <input type="hidden" id="imgSize" name="imgSize"> <!-- 图片大小 -->
                    <input type="hidden" id="thumUrl" name="thumUrl"> <!-- 缩略图地址 -->
                    <input type="hidden" id="thumSize" name="thumSize"> <!-- 缩略图大小 -->
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-row">
            <div class="layui-col-sm6">
                <label class="layui-col-sm4 required">排序</label>
                <div class="layui-col-sm8">
                    <input type="number" name="sort" id="sort" lay-verify="required" lay-reqtext="排序号不能为空" placeholder="请输入排序号" value="0" class="layui-input">
                </div>
            </div>
            <div class="layui-col-sm6">
                <label class="layui-col-sm6">是否显示</label>
                <div class="layui-col-sm6">
                    <input type="checkbox" id="isShowSwitch" lay-filter="isShowSwitch" lay-skin="switch" lay-text="是|否" checked>
                    <input type="hidden" name="isShow" id="isShow" value="0">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-form-text">
            <label class="layui-col-sm2">备注</label>
            <div class="layui-col-sm10">
                <textarea name="remark" id="remark" placeholder="请输入备注" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: right;">
            <div>
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">保存</button>
                <button class="layui-btn layui-btn-primary" id="closeBtn">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 导入js -->
<script type="text/javascript" src="/web/boIndexImage/boIndexImage_add.js"></script>